<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/selavenir.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Selavenir</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li<?php if ($this->id=="seliste") echo " class=\"active\"";?>><?php echo CHtml::link('Sélistes',array('/seliste/admin'),array('id'=>"menu_selistes"));?></li>
            <li<?php if ($this->id=="grain") echo " class=\"active\"";?>><?php echo CHtml::link('Grains',array('/grain/admin'),array('id'=>"menu_grains"));?></li>
            <li<?php if ($this->id=="domaine") echo " class=\"active\"";?>><?php echo CHtml::link('Domaines',array('/domaine/admin'),array('id'=>"menu_domaines"));?></li>
            <li<?php if ($this->id=="type") echo " class=\"active\"";?>><?php echo CHtml::link('Types',array('/type/admin'),array('id'=>"menu_types"));?></li>
            <li<?php if ($this->id=="groupe") echo " class=\"active\"";?>><?php echo CHtml::link('Groupes',array('/groupe/admin'),array('id'=>"menu_groupes"));?></li>
			
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>

    <div class="container">

      <div class="starter-template">
        <?php echo $content; ?>
      </div>

    </div><!-- /.container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>
